package com.ihisomp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 机构菜单维护
 * </p>
 *
 * @author zy
 * @since 2022-04-06
 */
@TableName("t_sys_page_path")
public class SysPagePath implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 拼音
     */
    private String py;

    /**
     * 排序号
     */
    private Integer seq;

    /**
     * 类型(1，文件夹；2，程序；3，权限)
     */
    private Integer type;

    /**
     * 页面路径
     */
    private String url;

    /**
     * 重定向
     */
    private String redirect;

    /**
     * 上级菜单主键
     */
    private String icon;

    /**
     * 是否缓存（1:是 0:否）
     */
    private Integer nocache;

    private String component;

    /**
     * 上级菜单主键
     */
    private String pid;

    /**
     * 备注
     */
    private String note;

    /**
     * 启用注记：0：未启用；1：启用
     */
    private Integer status;

    /**
     * 父名称
     */
    @TableField(exist = false)
    private String pname;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }
    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getRedirect() {
        return redirect;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    public Integer getNocache() {
        return nocache;
    }

    public void setNocache(Integer nocache) {
        this.nocache = nocache;
    }
    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }
    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    @Override
    public String toString() {
        return "SysPagePath{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", py='" + py + '\'' +
                ", seq=" + seq +
                ", type=" + type +
                ", url='" + url + '\'' +
                ", redirect='" + redirect + '\'' +
                ", icon='" + icon + '\'' +
                ", nocache=" + nocache +
                ", component='" + component + '\'' +
                ", pid='" + pid + '\'' +
                ", note='" + note + '\'' +
                ", status=" + status +
                ", pname='" + pname + '\'' +
                '}';
    }
}
